import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            name: 'index',
            component: require('@/pages/index').default,
        },
        {
            path: '/upload',
            name: 'upload',
            component: require('@/pages/upload').default
        },
        {
            path: '/base64',
            name: 'base64',
            component: require('@/pages/base64').default
        },
        {
            path: '/compress',
            name: 'compress',
            component: require('@/pages/compress').default
        },
        {
            path: '/more',
            name: 'more',
            component: require('@/pages/more').default
        },
        {
            path: '*',
            redirect: '/',
        },
    ],
});
